<style>
.layui-form-label{
	width:100px
}
.layui-input-inline .layui-form-label{
    text-align: left;
}
.layui-input-inline dl{
	width:25%;
	float:left;
}
.layui-form-select{
	width:190px;
	float:left;
}
</style>
<div class="layui-tab layui-tab-brief">
	<ul class="layui-tab-title">
  		<li class="layui-this">
       		<a href="javascript:;" class="" id="">审核详情</a>
     	</li> 
	</ul>
 	<div class="layui-tab-content page-tab-content">
   		<form class="layui-form" action="{:url()}" method="post">
			<div class="layui-tab-item layui-show"> 
			    <div class="layui-form-item">
			        <label class="layui-form-label">姓名：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="dlname" value="{$daili_info.dlname}"> 
			        </div>
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">上级代理：</label>
			        <div class="layui-input-inline">
			            <label class="layui-form-label" style="width:300px;">{$daili_info.fj_daili.dlname}（等级：{$daili_info.fj_dldj}，授权号:{$daili_info.fj_daili.sqh}）</label>
			        </div>
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">代理等级：</label>
			        <div class="layui-input-inline"> 
			            <label class="layui-form-label">{$daili_info.dldj}</label>
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">微信：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="dl_weixin" value="{$daili_info.dl_weixin}"> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">手机号：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="dl_phone" value="{$daili_info.dl_phone}"> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">身份证号：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="sfzh" value="{$daili_info.sfzh}">  
			        </div>
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">授权地区：</label>
			        <div class="layui-input-inline" style="width:600px;">
			        	<select lay-filter="province" name="province" id="province" style="width:190px;">
				        	<option value="0">请选择省</option>
				        	{volist name="province" id="v"}
				        		{if condition="$daili_info['province'] eq $v['code']"}
				        			<option value="{$v.code}" selected>{$v.name}</option>
				        		{else}
				        			<option value="{$v.code}">{$v.name}</option>
				        		{/if}
				        	{/volist}
				      	</select> 
				      	<select lay-filter="city" name="city" id="city" style="width:190px;">
				        	<option value="0">请选择市</option>
				        	{volist name="city" id="v"}
				        		{if condition="$daili_info['city'] eq $v['code']"}
				        			<option value="{$v.code}" selected>{$v.name}</option>
				        		{else}
				        			<option value="{$v.code}">{$v.name}</option>
				        		{/if}
				        	{/volist}
				      	</select> 
				      	<select name="area" id="area" style="width:190px;">
				        	<option value="0">请选择区</option>
				        	{volist name="area" id="v"}
				        		{if condition="$daili_info['area'] eq $v['code']"}
				        			<option value="{$v.code}" selected>{$v.name}</option>
				        		{else}
				        			<option value="{$v.code}">{$v.name}</option>
				        		{/if}
				        	{/volist}
				      	</select> 
			        </div>
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">收货地址：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="shdz" value="{$daili_info.shdz}"> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">前职业：</label>
			        <div class="layui-input-inline">
			        	<input type="text" class="layui-input field-name" name="qianzy" value="{$daili_info.qianzy}"> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">性别：</label>
			        <div class="layui-input-inline"> 
      					<input type="radio" name="sex" value="1" title="男" {if condition="$daili_info['sex'] eq 1"}checked=""{/if}><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>男</div></div>
      					<input type="radio" name="sex" value="2" title="女" {if condition="$daili_info['sex'] eq 2"}checked=""{/if}><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>女</div></div> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">婚姻状况：</label>
			        <div class="layui-input-inline">
			        	<input type="radio" name="hyzk" value="0" title="未婚" {if condition="$daili_info['hyzk'] eq 0"}checked=""{/if}><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>未婚</div></div>
      					<input type="radio" name="hyzk" value="1" title="已婚" {if condition="$daili_info['hyzk'] eq 1"}checked=""{/if}><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>已婚</div></div> 
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">身份证照片：</label>
			        <div class="layui-input-inline" style="width:1000px;">
			            <dl>
			            	<dt><img src="{$daili_info.sfzzm}" style="width:150px;height:100px;"/></dt>
			            	<dd>
			            		<button style="width:150px;" type="button" name="upload" class="layui-btn layui-btn-primary layui-upload" lay-type="image" lay-data="{ exts:'jpg|png|gif|jpeg|ico', accept:'sfzzm'}">重新上传</button>
			            		<input type="hidden" name="sfzzm" value="{$daili_info.sfzzm}">
			            	</dd>
			            </dl>
			            <dl>
			            	<dt><img src="{$daili_info.sfzfm}" style="width:150px;height:100px;"/></dt>
			            	<dd>
			            		<button style="width:150px;" type="button" name="upload" class="layui-btn layui-btn-primary layui-upload" lay-type="image" lay-data="{ exts:'jpg|png|gif|jpeg|ico', accept:'sfzfm'}">重新上传</button>
			            		<input type="hidden" name="sfzfm" value="{$daili_info.sfzfm}">
			            	</dd>
			            </dl>
			            <dl>
			            	<dt><img src="{$daili_info.scsfz}" style="width:150px;height:100px;"/></dt>
			            	<dd>
			            		<button style="width:150px;" type="button" name="upload" class="layui-btn layui-btn-primary layui-upload" lay-type="image" lay-data="{ exts:'jpg|png|gif|jpeg|ico', accept:'scsfz'}">重新上传</button>
			            		<input type="hidden" name="scsfz" value="{$daili_info.scsfz}">
			            	</dd>
			            </dl>
			            <dl>
			            	<dt><img src="{$daili_info.ysz}" style="width:150px;height:100px;"/></dt>
			            	<dd>
			            		<button style="width:150px;" type="button" name="upload" class="layui-btn layui-btn-primary layui-upload" lay-type="image" lay-data="{ exts:'jpg|png|gif|jpeg|ico', accept:'ysz'}">重新上传</button>
			            		<input type="hidden" name="ysz" value="{$daili_info.ysz}">
			            	</dd>
			            </dl>
			        </div> 
			    </div>
			    <div class="layui-form-item">
			        <label class="layui-form-label">转账凭证：</label>
			        <div class="layui-input-inline" style="width:1000px;">
			            <dl>
			            	<dt><img src="{$daili_info.zzpz}" style="width:150px;"/></dt>
			            	<dd>身份证正面照<!-- <a href=""><i class="layui-icon layui-icon-picture"></i>大图</a> --></dd>
			            </dl>
			        </div> 
			    </div> 
			</div> 
			<div class="layui-form-item"> 
			    <div class="layui-input-block"> 
			        <input type="hidden" class="id" name="id" value="{$daili_info.id}">
			        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit">提交</button>
			        <a href="{:url('index')}" class="layui-btn layui-btn-primary ml10"><i class="aicon ai-fanhui"></i>返回</a>
			    </div>
			</div>
		</form> 
	</div>
</div>
{include file="block/layui" /}
<script src="__PUBLIC_JS__/jquery.2.1.4.min.js?v={:config('hisiphp.version')}"></script>
<script type="text/javascript">
layui.use(['form'], function() {
	form = layui.form;
	form.on('select(province)', function(data1){ 
		var province = data1.value;
		if(province == 0){
			return false;
		}
		$.post("{:url('daili/getCity')}",{province:province},function(data){
			var html = '';
			for(var i=0 in data){
				if(i == 0){
					$.post("{:url('daili/getArea')}",{city:data[i]['code']},function(data){
						var html = '';
						for(var i=0 in data){
							html += "<option value='"+data[i]['code']+"'>"+data[i]['name']+"</option>";
						}
						$("#area").html(html);
						form.render('select');
					});
				}
				html += "<option value='"+data[i]['code']+"'>"+data[i]['name']+"</option>";
			}
			$("#city").html(html);
			form.render('select');
		});
	});
	
	form.on('select(city)', function(data1){
		var city = data1.value;
		if(city == 0){
			return false;
		}
		$.post("{:url('daili/getArea')}",{city:city},function(data){
			var html = '';
			for(var i=0 in data){
				html += "<option value='"+data[i]['code']+"'>"+data[i]['name']+"</option>";
			}
			$("#area").html(html);
			form.render('select');
		});
	});
}); 
</script>
<script>
layui.use(['jquery', 'laydate', 'upload'], function() {
    var $ = layui.jquery,upload = layui.upload;
    upload.render({
        elem: '.layui-upload',
        url: '{:url("system/annex/upload?thumb=no&water=no")}'
        ,method: 'post'
        ,before: function(input) {
            layer.msg('文件上传中...', {time:3000000});
        },done: function(res, index, upload) {
            var obj = this.item;
            if (res.code == 0) {
                layer.msg(res.msg);
                return false;
            }
            layer.closeAll();//console.log(res);console.log(index);console.log(upload);
            $(obj).next().next().val(res.data.file);
            $(obj).parent().prev().children(":first").attr('src', res.data.file); 
        }
    });
}); 
</script>